package br.edu.unirn.dao;

import java.util.List;

import br.edu.unirn.model.Endereco;

public class EnderecoDAO extends GenericDAO<Endereco> {

	@Override
	public Class<Endereco> getClassType() {
		return Endereco.class;
	}

	public List<Endereco> findAllByRua(String rua) {
		return findAllLike("nome", rua);
	}
	
	public List<Endereco> findAllByBairro(String bairro) {
		return findAllLike("nome", bairro);
	}
}
